<include file="Public:header" />


<load href='__ROOT__/admin/js/swfupload/swfupload.js' />
<load href='__ROOT__/admin/js/swfupload/goodsupload/swfupload.queue.js' />
<load href='__ROOT__/admin/js/swfupload/goodsupload/fileprogress.js' />
<load href='__ROOT__/admin/js/swfupload/goodsupload/handlers.js' />
<load href='__ROOT__/admin/js/goods.js' />


<!-- 图片上传块 -->
		<TABLE cellpadding=3 cellspacing=3 >
		<tr>
			<td>
			<table>
				<tr>
					<td width="120">
						<div id="divStatus" style="display:none;"></div>
						<input id="btnCancel" type="hidden" />
						<span id="image_browse"></span>
					</td>
					<td>
						<div class="fieldset flash" id="fsUploadProgress" style="display:none;" ></div>
						<div id="uploaderimg">可同时上传多张图片</div>
					</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<img src="<if condition="$goods_img_url neq ''">__ROOT__{$goods_img_url}<else />__ROOT__/admin/js/swfupload/nopic.gif</if>" width="300" height="300" id="goods_img_box" />
			<input type="hidden" name="gallery_id" id="gallery_id" value="{$vo.img_url}" />
			</td>
		</tr>
		<tr>
			<td>
				<!-- 图片列表 -->
				<div id="gallery_list" class="gallery_list" >
					<iterate name="img_list" id="img_gallery">				
						<div>
						<input type='hidden' value='{$img_gallery.id}' name='goods_gallerys[]' />
						<img src='__ROOT__{$img_gallery.thumb_url}' onclick='setgallery({$img_gallery.id});' /><br /><a href='javascript:;' onclick='delgallery({$img_gallery.id},this)'>删除</a>
						</div>							
					</iterate>				
				</div>
				<!-- 图片列表 -->
			</td>
		</tr>
		<!--<tr>
			<td>
				{%DEFINE_SMALL_IMG}：
				{%YES}：<input type="radio" name="is_define_small_img" value="1" <if condition="$vo['is_define_small_img'] eq 1">checked="checked"</if> onclick="sw_define_img(1);" />				
				{%NO}：<input type="radio" name="is_define_small_img" value="0" <if condition="$vo['is_define_small_img'] eq 0">checked="checked"</if> onclick="sw_define_img(0);" />
				<div style="height:10px;"></div>
				<div id="define_small_img" <if condition="$vo['is_define_small_img'] eq 0">style="display:none;"</if>>					
					<input type="file" name="define_small_img" style="display:inline; float:left; margin-top:15px;" />
				</div>
			</td>
		</tr>-->
		</TABLE>
		<script type="text/javascript">
		var settings = {
				flash_url : "__ROOT__/admin/js/swfupload/swfupload.swf",
				upload_url: APP,				
				post_params: {"<php>echo C('VAR_MODULE');</php>":"Public","<php>echo C('VAR_ACTION');</php>":"uploadBatch","goods_id":goods_id,"session_id":session_id},
				file_size_limit : "<php>echo (fanweC('MAX_UPLOAD')/1000000)."MB";</php>",
				file_types : "*.jpg;*.gif",
				file_types_description : "{$Think.lang.GOODS_UPLOAD_MAX_TIP}<php>echo (fanweC('MAX_UPLOAD')/1000000)."MB";</php>",
				file_upload_limit : 100,
				file_queue_limit : 100,
				custom_settings : {
					progressTarget : "fsUploadProgress",
					cancelButtonId : "btnCancel"
				},
				debug: false,
				button_image_url: "__ROOT__/admin/images/swfupload/uploadbtn.png",
				button_width: "100",
				button_height: "30",
				button_placeholder_id: "image_browse",
				file_queued_handler : fileQueued,
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_start_handler : uploadStart,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,
				queue_complete_handler : queueComplete	
			};
			var swfu = new SWFUpload(settings);
		</script>
		<!-- 图片上传块 -->






<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/clear')}">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<td>
			<ul class="tipslis">
				<li>当站点进行配置文件性的更新操作后，如果出现异常，请进行此操作！</li>

			</ul>
		</td>
	</tr>
	<tr>
		<td style="padding-left:30px;">
			<label><input type="checkbox" name="is_admin" value="1" />&nbsp;<span>{%MANGER_CACHE}</span></label>&nbsp;&nbsp;
		</td>
	</tr>
	<tr>
		<td style="padding-left:30px;">
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
			<input type="hidden" name="type" value="xiangmu" />
		</td>
	</tr>
</table>
</form>
<include file="Public:footer" />